<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>功能模块管理</title>
  <link rel="stylesheet" href="${ctx}/static/admin/layui/css/layui.css">
  <link rel="stylesheet" href="${ctx}/static/admin/css/sidebar.css">
  <link rel="stylesheet" href="${ctx}/static/admin/css/switch.css">
	<style>
		/* 偶数行背景色 */
		.layui-table-click,.layui-table[lay-even] tr:nth-child(even) {
			/* background-color: #aaffaa; */
			background-color: #e0e0e0;
		}

		/* 鼠标指向表格时,奇数行背景颜色 */
		.layui-table tbody tr:hover,.layui-table-hover {
			background-color: #e0e0e0;
		}
	</style>
</head>
  <body>
    <div class="layui-card-header">
        <form class="layui-form">
	       <div class="layui-form-item">
	           <div class="layui-input-inline" style="top: 3px;">
			       <input type="search" name="name" autocomplete="off" class="layui-input" style="width:180px;" placeholder="链接名称"/>
		       </div>
	            <div class="layui-input-inline" style="top: 3px;">
	                <select id="statusid" name="status" lay-filter="status">
	                    <option value="">选择状态</option>
	                    <option value="1">启用</option>
	                    <option value="2">禁用</option>
	                </select>
	            </div>
	           <div class="layui-input-inline">
			       <button class="layui-btn" id="submitid" lay-submit lay-filter="serach_form"><i class="layui-icon">&#xe615;</i> 查询</button>
		       </div>
	       </div>
        </form>
    </div>
	<div class="layui-card-body">
		<#button permission="modulesbtnadd" id="add" size="layui-btn-sm" textName="新增" event="add"/>
		<table id="modulestable" lay-filter="modules"></table>
	</div>
  </body>
</html>
<script src="${ctx}/static/admin/layui/layui.js"></script>
<script src="${ctx}/static/admin/js/common.js"></script>
<script type="text/html" id="toolbar">
<#button permission="modulesbtnedit" iconCls="layui-btn" size="layui-btn-xs" textName="编辑" event="edit"/>
<#button permission="modulesbtnInterface" iconCls="layui-btn" size="layui-btn-xs" textName="接口设置" event="interfaceSeting"/>
<#button permission="modulesbtneditForm" iconCls="layui-btn-warm" size="layui-btn-xs" textName="表单管理" event="editForm"/>
<#button permission="modulesbtncal" iconCls="layui-btn-warm" size="layui-btn-xs" textName="计算公式" event="cal"/>
<#button permission="modulesbtnsearch" iconCls="layui-btn-normal" size="layui-btn-xs" textName="自定义查询项" event="search"/>
<#button permission="modulesbtnorderby" iconCls="layui-btn-normal" size="layui-btn-xs" textName="自定义排序项" event="order"/>
<#button permission="modulesbtnmenu" iconCls="layui-btn-primary" size="layui-btn-xs" textName="菜单权限" event="menuCompetence"/>
<#button permission="modulesbtndata" iconCls="layui-btn-primary" size="layui-btn-xs" textName="数据权限" event="competence"/>
<#button permission="modulesbtndel" iconCls="layui-btn-danger" size="layui-btn-xs" textName="删除" event="del"/>
</script>
<script type="text/html" id="enabled">
  <input type="checkbox" name="status" lay-filter="status" value="{{d.status}}" lay-skin="switch" lay-text="启用|禁用" {{ d.status == 1 ? 'checked' : '' }}>
</script>
<script type="text/html" id="isInterface">
	<input type="checkbox" name="isInterface" lay-filter="isInterface" value="{{d.is_interface}}" lay-skin="switch" lay-text="是|否" {{ d.is_interface == 2 ? 'checked' : '' }}>
</script>
<script type="text/javascript">
	var ctx = '${ctx}', tablename = '${tablename!}';
</script>
<script src="${ctx}/static/admin/module/modulesList.js"></script>